package com.mnsq.common.bean.enums;

/**
 * @author Administrator
 */
public enum SysProEnum {
    ONE("", "");
    public String type;
    public String description;

    SysProEnum(String type, String description) {
        this.type = type;
        this.description = description;
    }

    public static SysProEnum getByType(String type) {
        for (SysProEnum spe : SysProEnum.values()) {
            if (spe.type.equals(type)) {
                return spe;
            }
        }
        return null;
    }
}
